<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="template-head.jsp" />
<jsp:include page="template-body.jsp" />
<div class="container">
	<jsp:include page="errors.jsp"/>
<div id="openendedquestionpage">
	<c:choose>
		<c:when test="${network == true}">
		<h1>Network Open List Type Question</h1>
		</c:when>
		<c:otherwise>
		<h1>Open Ended Type Question</h1>
		</c:otherwise>
	</c:choose>
	<div id="openendedquestionbody">
		<div class="hero-unit">
		<form id="openendedquestionform" method="post" action="openendedq.do">
			<div id="openendedquestiontext">
				<textarea name="question" rows="10" cols="100">Type your question here.</textarea>
			</div>
			<div id="openendedquestiondynetmlattr">
			<c:choose>
				<c:when test="${network == true}">
				<p>Enter the dynetml network identifier for this question</p>
				</c:when>
				<c:otherwise>
				<p>Enter the dynetml attribute identifier for this question</p>
				</c:otherwise>
			</c:choose>
			<input type="text" name="dynetmlAttr" value="${likertqform.dynetmlAttr}">
			</div>
			<div id="openendedquestionchoice">
			<c:choose>
				<c:when test="${network == true}"> <%-- Network Open List Question --%>
				<p>Select the name of entity class for this question.</p>
				<select name="className" class="type">
					<c:forEach var="ec" items="${entityclass}">
					<option>${ec.name}</option>
					</c:forEach>
				</select>
				</c:when>
			</c:choose>
			</div>
			<div id="openendedquestionbutton">
				<table>
					<tr>
						<td><input type="submit" name="button" class="btn btn-success"  value="Submit"></td>
					</tr>
					<tr>
						<td><input type="submit" name="button" class="btn btn-inverse"  value="Back"></td>
					</tr>
				</table>
			</div>
		</form>
	</div>
</div>
</div>
</div>
<!--Create another space for contents' extension  -->
	<div class="container2">
	
	
 	</div>
<jsp:include page="template-foot.jsp" /> 